Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Root Account to Spend Treasury Funds #850

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

asiniscalchi
Copy link
Member

@asiniscalchi asiniscalchi commented Oct 24, 2024

PR Type

enhancement


Description

  • Updated the Treasury configuration to allow the root account to spend funds.
  • Changed the SpendFunds type to EnsureRoot<AccountId>, enabling root-level access for fund spending.

Changes walkthrough 📝

Relevant files
Enhancement
treasury.rs
Allow root to spend funds from Treasury                                   

runtime/laos/src/configs/treasury.rs

  • Changed the SpendFunds configuration to use EnsureRoot.
  • This allows the root to spend funds from the Treasury.
  • +1/-1     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    @asiniscalchi
    Copy link
    Member Author

    /describe

    Copy link

    PR Description updated to latest commit (e2ee19c)

    @github-actions github-actions bot changed the title Root can spend funds of Treasury Enable Root Account to Spend Treasury Funds Oct 24, 2024
    @asiniscalchi asiniscalchi linked an issue Oct 24, 2024 that may be closed by this pull request
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    Enable Root to Spend Treasury Funds
    1 participant